#include "EditorComponentPropertyModel.h"

#include "Object/NewObject.h"
#include "Scene/SceneNodeComponent.h"

#include "Property/ReflectedProperty/EditorReflectedPropertyModel.h"


TSharedObjectPtr<REditorComponentPropertyModel> REditorComponentPropertyModel::Create(
    TSharedObjectPtr<RSceneNodeComponent> InComponent,
    RObject *InParent)
{
    TSharedObjectPtr<REditorComponentPropertyModel> NewModel = NewObject<REditorComponentPropertyModel>(InParent);
    NewModel->Component = InComponent;

    NewModel->Properties= REditorReflectedPropertyModel::Create(InComponent, NewModel.Get());

    return NewModel;
}
